const BaseModel = require("./baseModel");

class DeptModel extends BaseModel {
  constructor({
    id = null,
    deptName = null,
    parentDeptId = null,
    fullId = null,
    fullDeptName = null,
    isDelete = null,
    createBy = null,
    createDate = null,
    updateBy = null,
    updateDate = null,
    status = null,
  } = {}) {
    super("depts", {
      id,
      deptName,
      parentDeptId,
      fullId,
      fullDeptName,
      isDelete,
      createBy,
      createDate,
      updateBy,
      updateDate,
      status,
    });
    this.id = id;
    this.deptName = deptName;
    this.parentDeptId = parentDeptId;
    this.fullId = fullId;
    this.fullDeptName = fullDeptName;
    this.isDelete = isDelete;
    this.createBy = createBy;
    this.createDate = createDate;
    this.updateBy = updateBy;
    this.updateDate = updateDate;
    this.status = status;
  }
}

module.exports = DeptModel;
